package cn.wjh.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 关注对象 tbl_focus
 *
 * @author jiraWu
 * @date 2023-10-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tbl_focus")
public class Focus extends BaseEntity {
	private static final long serialVersionUID = 1L;


	/**
	 * 主键Id
	 */
	@TableId
	private Long focusId;


	/**
	 * 关注人
	 */
	private Long userId;


	/**
	 * 被关注人
	 */
	@Excel(name = "被关注人")
	private Long receiveId;


	/**
	 * 关注时间
	 */
	private Date createTime;


	/**
	 * 创建人名称
	 */
	private String createBy;

	/*关注人*/
	@TableField(exist = false)
	private SysUser user;

	/*被关注人*/
	@TableField(exist = false)
	private SysUser receiveUser;

}

